import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';

@Entity()
export class CategoryEntity {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ comment: '菜品类别名称' })
  name: string;

  @Column({ comment: '所属餐厅ID' })
  restaurantId: number;
}
